<template>
  <div>
    <a @click="one" href="http://www.baidu.com">阻止百度</a>
    <hr />
    <a @click="two(10, $event)" href="http://www.baidu.com">阻止去百度</a>
  </div>
</template>

<script>
export default {
  name: "VuecliDemoApp",

  data() {
    return {};
  },

  mounted() {},

  methods: {
      one(e){
      e.preventDefault()
    },
    two(num, e){
      e.preventDefault()
    }
  },
};
</script>

<style>
</style>